import request from "@/utils/request";

// 获取耗材资料列表
export const getGoodsList = (data) => {
  return request({
    url: "/goods/list",
    method: "post",
    data
  });
};

// 根据id查询单个耗材资料信息
export const getOneGoodsInfo = (data) => {
  return request({
    url: "/goods/get",
    method: "post",
    data
  });
};

// 新增耗材资料
export const addGoods = (data) => {
  return request({
    url: "/goods/add",
    method: "post",
    data
  });
};

// 修改耗材资料
export const editGoods = (data) => {
  return request({
    url: "/goods/update",
    method: "post",
    data
  });
};

// 删除耗材资料
export const removeGoods = (data) => {
  return request({
    url: "/goods/delete",
    method: "post",
    data
  });
};

